
import matplotlib.pyplot as plt

# Read in the three images
img1 = plt.imread(r'D:\KLG\FINAL\code\testImg\img\IMG_20220901-092339-872.bmp')
img2 = plt.imread(r'D:\KLG\FINAL\code\testImgSave\IMG_20220901-092339-872_Saturation_0.bmp')
# img3 = plt.imread(r'D:\KLG\FINAL\code\testImgSave\IMG_20220901-092339-872_Rotate_1.bmp')

# Set the titles for each image
title1 = '原始图像'
title2 = '亮度变换'
# title3 = '逆时针旋转'

# Create a figure with three subplots in one row
fig, axs = plt.subplots(1, 2, figsize=(12, 8))

# Add each image to its corresponding subplot and set the title
axs[0].imshow(img1)
axs[0].set_title(title1, fontproperties='SimHei')
axs[1].imshow(img2)
axs[1].set_title(title2, fontproperties='SimHei')
# axs[2].imshow(img3)
# axs[2].set_title(title3, fontproperties='SimHei')

# Show the plot
plt.show()




